<?php

require_once "core/application/models/mpremiums/mpremiums3.php";

class Mpremium4 extends Mpremium3 {

    private $_query;

    protected function numRowsOfCharsOnAccount($account) {
        /**
         *  кол-во чаров на акке
         * @param string $account
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "SELECT `name` FROM `account_data` WHERE `name` = '$account'";
        if (mysql_num_rows(DB::getInstance()->sql($this->_query))) {
            return false;
            DB::getInstance()->closeConnection();
            unset($this->_query);
        } else {
            return true;
            DB::getInstance()->closeConnection();
            unset($this->_query);
        }
    }

}

?>